package com.hrma.services;

import com.github.pagehelper.Page;
import com.hrma.entity.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface AttendanceService {
//    void attendanceStatistic() throws ParseException;

    /**
     * 统计上个月考勤信息
     */
    void lastMonthAttendanceResult();

    void add(AttendanceResult data);

    void delete(int id);

    void update(AttendanceResult data);


    List<SelectResult> select();

    Page<Attendance> getList(AttendanceDTO data);

    AttendanceRule getRule();

    /**
     * 修改考勤扣款规则
     */
    void updateRule(AttendanceRule data);

    /**
     * 导入上月考勤记录excel表
     */
    void handleUpload(MultipartFile multipartFile) throws IOException;

    /**
     * 清空考勤记录表
     */
    void delete();
}
